#pragma once
#include "ImageDisplayItem.h"
class DisplayEngine;
class DisplayContext;
class GravityObject:public ImageDisplayItem
{
public:
	GravityObject(void);
	~GravityObject(void);
public:
	void SetXSpeed(float speed)
	{
		m_xSpeed=speed;
	}
public:
	virtual void Render(DisplayContext &dislpayEngine) override;
	virtual void Update();
private:
	float m_xSpeed;
	float m_ySpeed;
	float m_xGravity;
	float m_yGravity;
	float m_xSpeedLimit;
	float m_ySpeedLimit;
	float m_xLocation;
	float m_yLocation;
};

